package com.example.studentregistration.service;

import com.example.studentregistration.pojo.CheckIn;
import com.example.studentregistration.util.Result;
import com.github.pagehelper.Page;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

public interface CheckInService {
    Result<?> insert(CheckIn entity);
    Result<?> update(CheckIn entity);
    Result<?> delete(Integer id);
    int batchDelete(List<Integer> ids);
    Page queryAll(Integer currentPage, Integer pageSize);
    Result<CheckIn> queryById(Integer id);

    // 业务：办理入住、退宿、调换
    Result<?> checkIn(CheckIn entity);
    Result<?> checkOut(Integer id); // 根据记录退宿
    Result<?> transfer(Integer recordId, Integer targetRoomId, String targetBedNo);

    void exportExcel(HttpServletResponse response) throws IOException;
}